package org.wattdepot.gdata.kukuicup.updater.energygoalgame;

import static org.junit.Assert.assertEquals;
import org.junit.Test;


/**
 * Sanity check of the BetaEvalUserData class.
 * @author Philip Johnson
 */
public class TestBetaEvalUserData {

  /**
   * Check to make sure the class works on the sample summary csv data.
   */
  @Test
  public void testUserData() {
    String fileName = System.getProperty("user.dir") + "/" + "sample.summary.csv";
    BetaEvalUserData userData = new BetaEvalUserData(fileName);
    String lounge = "Lehua-A";
    assertEquals("Checking floor points", 748, userData.getTotalPoints(lounge));
    assertEquals("Checking user posts", 13, userData.getUserPosts(lounge));
    assertEquals("Checking canopy members", 0, userData.getCanopyMembers(lounge));
  }    
}

